package com.zhang.satokendemo.controller;


import com.zhang.satokendemo.config.ApiResult;
import com.zhang.satokendemo.service.ISysMenuService;
import com.zhang.satokendemo.service.ISysUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zxg
 * @since 2023-06-24
 */
@RestController
@RequestMapping("/sysUser")
public class SysUserController {

    @Resource
    private ISysUserService sysUserService;

    @Resource
    private ISysMenuService menuService;

    @GetMapping("/listUser")
    public ApiResult listUser(){
        return ApiResult.success(sysUserService.list());
    }

    @GetMapping("/listMenu")
    public ApiResult listMenu(){
        return ApiResult.success(menuService.list());
    }


}

